Skip to content

Conversation

@nicosampler
Copy link
Collaborator

Closes #252

Description: Add toast helpers for signing and executing a tx.

A new provider was added with three independent methods allowing watching when a signature is requested, when a tx is initiated, or simply to a particular tx hash.

Type of change:

  • New feature
  • Bug fix
  • Breaking change
  • Enhancement
  • Refactoring
  • Chore

How Has This Been Tested?

  • Manual testing
  • Automated tests
  • Other (explain): I've tested using a fork of the dapp. Once this PR is merged, I can add it to the examples repo.

@nicosampler nicosampler requested a review from fernandomg August 26, 2024 13:35
@nicosampler nicosampler self-assigned this Aug 26, 2024
@vercel
Copy link

vercel bot commented Aug 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
dappbooster ✅ Ready (Inspect) Visit Preview Aug 27, 2024 7:23pm

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm concerned about this, why so many modifications if there were no package.json modifications at all?

onReplaced: (replacedTxData) => (replacedTx = replacedTxData),
})

if (replacedTx!) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're already checking for reaplacedTx existence, why use the non-null assertion here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because it was complaining about using replacedTx before being initialized.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps turning off the linter for that line will be more clear.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank Lord! I know you'll never leave me alone microsoft/TypeScript#11498 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Track Tx life cycle

3 participants